﻿namespace LeadMaster.ViewModels
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.ComponentModel.DataAnnotations;
    using LeadMaster.Models;
    using LeadMaster.DAL;
    using System.Web.Mvc;

    public class ViewModelOrders
    {
        public ViewModelOrders()
        {
            this.LeadsReplacements = db.LeadsReplacement.ToList();
            this.Invoicings = db.Invoicing.ToList();
            this.ScheduleTemplates = db.ScheduleTemplate.ToList();
            this.PaymentTerms = db.PaymentTerms.ToList();
            this.OrderStatus = db.OrderStatus.ToList();
            this.OrderOther = string.Empty;
            this.Order = new Orders();
            this.TheFees = new List<Fees>();
        }
        
        private DunsmoreContext db = new DunsmoreContext();

        public Orders Order { get; set; }

        [Required]
        public List<LeadsReplacement> LeadsReplacements { get; set; }

        public List<ScheduleTemplate> ScheduleTemplates { get; set; }

        public List<Invoicing> Invoicings { get; set; }

        public List<PaymentTerms> PaymentTerms { get; set; }

        public List<OrderStatus> OrderStatus { get; set; }

        public int OrderStatusID { get; set; }

        public OrderSections OrderSection { get; set; }

        public List<ScheduleSection> ScheduleSections { get; set; }

        public string[]  SectionMergeText { get; set; }

        public string OrderOther { get; set; }

        public List<Fees> TheFees { get; set; }

        public Fees newFee { get; set; }

        public int FeeCounter { get; set; }

        public List<OrderSections> OrderSections { get; set; }
    }
}